package com.wangsh.splider;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
/* 开启定时任务 */
@EnableScheduling
public class ApplicationWeb {

	public static void main(String[] args) {
		SpringApplication.run(ApplicationWeb.class, args);
	}
	
	/**
	 * 增加访问的前缀和后缀
	 */
//	@Bean
//	public ServletRegistrationBean<DispatcherServlet> servletRegistrationBean(DispatcherServlet servlet)
//	{
//		ServletRegistrationBean<DispatcherServlet> bean = new ServletRegistrationBean<DispatcherServlet>(servlet);
//		bean.addUrlMappings("*.htm");
//		return bean ; 
//	}
}
